<html>
<head>
<script language="JavaScript">
function right(e)
	{
		if (navigator.appName == 'Netscape' && 
		(e.which == 3 || e.which == 2))
			return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && 
		(event.button == 2 || event.button == 3))
		{
			alert("you are not allowed to do right click");
			return false;
		}
		return true;
	}
		
	function TBGlobalMouseUp() {
		document.onmouseup=right;
		if (document.layers) window.captureEvents(Event.MOUSEUP);
		window.onmouseup=right;
	}
	function TBGlobalMouseDown() {
		document.onmousedown=right;
		if (document.layers) window.captureEvents(Event.MOUSEDOWN);
		window.onmousedown=right;
	}
		TBGlobalMouseUp();
		TBGlobalMouseDown()
</script>		

<title>Insert Drop Down</title>
	<style type="text/css">  
	TD {FONT-SIZE: 8pt; FONT-FAMILY: tahoma, verdana, Arial, Helvetica, sans-serif}
	.tbColor {cursor:hand;}
	</style>
</head>
<link rel="stylesheet" href="css/winie.css" type="text/css">
<body bgcolor=buttonface topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<?
$theName=trim($HTTP_POST_VARS["theName"]);
$theSize=trim($HTTP_POST_VARS["theSize"]);
$theNoOptions=trim($HTTP_POST_VARS["theNoOptions"]);
$radioselect=trim($HTTP_POST_VARS["radioselect"]);
$optiontext="";
for($i=1;$i<=$theNoOptions;$i++)
{
	$optionvalue=trim($HTTP_POST_VARS["option".$i]);
	if($i==$radioselect)
	{
		$optiontext.="<option value=".$optionvalue." selected>".$optionvalue."</option>";
	}
	else
	{
		$optiontext.="<option value=".$optionvalue.">".$optionvalue."</option>";
	}	
}
$selectedindexval="<select name='".$theName."' size=".$theSize.">".$optiontext."</select>";
?>
<script language="JavaScript">
window.opener.crDropDown("<?=$selectedindexval?>");
window.close();
</script>
</body>
</html>